#ifndef __loconet_thread_h
#define __loconet_thread_h

#include "messages.h"

typedef struct __loconet_thread_struct {
	// "persistent" data for this "lthread" would go here
	unsigned char cur_msg[MSGLEN];
	unsigned char cur_len;
	unsigned char msg_ready;
} loconet_thread_struct;

void init_loconet_thread(loconet_thread_struct *lptr);
int loconet_lthread(loconet_thread_struct *lptr, int msgtype, int length, unsigned char *msgbuffer);

#endif

